//
//  OldPhotoDataManger.m
//  OldPhoto
//
//  Created by 蓝鳍互娱 on 2024/7/30.
//

#import "OldPhotoDataManger.h"
#import "OldPhotoNet.h"
@implementation OldPhotoDataManger
static OldPhotoDataManger *defaultManger = nil;
+(OldPhotoDataManger *)defaultManger{
    static dispatch_once_t token;
    dispatch_once(&token, ^{
        if(defaultManger == nil){
            defaultManger = [[self alloc] init];
        }
    });
    return defaultManger;
}
+ (void)requestOldPhotoPrice{
    NSDictionary *parmDic = @{@"packageName":@"com.cc.yaoyao"};
    [[OldPhotoNet defaultManger] oldPhotoNetPost:@"http://guoqi-sms.neighbor.icu/lbbserves/api/appdingyue/info" withParaDic:parmDic withSuccess:^(id  _Nonnull data) {
        NSDictionary * dataDic = data[@"data"];
        [OldPhotoDataManger defaultManger].icp = [dataDic objectForKey:@"version"];
    } withFail:^{
            
    }];
}
@end
